import re

vowelRegex = re.compile(r'[aeiouAEIOU]')
result = vowelRegex.findall('RoboCop eats baby food. BABY FOOD.')
print(result)

# 方括号[]内，正则表达式符号不用转义，如英文句号'.'
customizeRegex = re.compile(r'[a-c0-5A-F.]')
result2 = customizeRegex.findall('RoboCop eats baby food. BABY FOOD 065.')
print(result2)

# 非
consonantRegex = re.compile(r'[^aeiouAEIOU]')
result3 = consonantRegex.findall('RoboCop eats baby food. BABY FOOD.')
print(result3)
